package me.pplay.playtalk.protocol.bean;

import java.io.Serializable;

public class TpNotiNode implements Serializable{
	public int type;
	public String text;
	public tp_msg_node msg_node ;
	public tp_down_node down_node ; //下载apk
	public tp_req_node req_node;   //好友请求
	public tp_res_node res_node;   //下载资源
	
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public tp_msg_node getMsg_node() {
		return msg_node;
	}
	public void setMsg_node(tp_msg_node msg_node) {
		this.msg_node = msg_node;
	}
	public tp_down_node getDown_node() {
		return down_node;
	}
	public void setDown_node(tp_down_node down_node) {
		this.down_node = down_node;
	}
	public tp_req_node getReq_node() {
		return req_node;
	}
	public void setReq_node(tp_req_node req_node) {
		this.req_node = req_node;
	}
	public tp_res_node getRes_node() {
		return res_node;
	}
	public void setRes_node(tp_res_node res_node) {
		this.res_node = res_node;
	}
	//消息结构体
	public class tp_msg_node implements Serializable{
		private int skyid=-1;
		private int gid;//当是群消息时候有用
		private String alias;
		private String msg;
		private int msgtype;
		public int getSkyid() {
			return skyid;
		}
		public void setSkyid(int skyid) {
			this.skyid = skyid;
		}
		public int getGid() {
			return gid;
		}
		public void setGid(int gid) {
			this.gid = gid;
		}
		public String getAlias() {
			return alias;
		}
		public void setAlias(String alias) {
			this.alias = alias;
		}
		public String getMsg() {
			return msg;
		}
		public void setMsg(String msg) {
			this.msg = msg;
		}
		public int getMsgtype() {
			return msgtype;
		}
		public void setMsgtype(int msgtype) {
			this.msgtype = msgtype;
		}
		
	}
	//下载mrp
	public class tp_down_node implements Serializable{
		int appid;
		int appver;
		String folder;
		String shortname;
		public int getAppid() {
			return appid;
		}
		public void setAppid(int appid) {
			this.appid = appid;
		}
		public int getAppver() {
			return appver;
		}
		public void setAppver(int appver) {
			this.appver = appver;
		}
		public String getFolder() {
			return folder;
		}
		public void setFolder(String folder) {
			this.folder = folder;
		}
		public String getShortname() {
			return shortname;
		}
		public void setShortname(String shortname) {
			this.shortname = shortname;
		}
		
	}
	//TP_NOTIFICATION_CHAT_BSTATUS
	//TP_NOTIFICATION_CHAT_BUDDYREQ
	public class tp_req_node implements Serializable{
		TPBuddyinfo buddy;
		String text;
		public TPBuddyinfo getBuddy() {
			return buddy;
		}
		public void setBuddy(TPBuddyinfo buddy) {
			this.buddy = buddy;
		}
		public String getText() {
			return text;
		}
		public void setText(String text) {
			this.text = text;
		}
		
	}
	//询问是否需要下载，和同意上传结点
	public class tp_res_node implements Serializable{
		int skyid;
		String name;
		String alias;
		String filename;//文件名
		int filelen;
		String text;
		int server_id;//文件所在服务器的id
		String fpath;//文件所在服务器的路径
		String ipath;//文件缩略图(如果有)所在服务器的路径)
		int goup_id;
		public int getSkyid() {
			return skyid;
		}
		public void setSkyid(int skyid) {
			this.skyid = skyid;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getAlias() {
			return alias;
		}
		public void setAlias(String alias) {
			this.alias = alias;
		}
		public String getFilename() {
			return filename;
		}
		public void setFilename(String filename) {
			this.filename = filename;
		}
		public int getFilelen() {
			return filelen;
		}
		public void setFilelen(int filelen) {
			this.filelen = filelen;
		}
		public String getText() {
			return text;
		}
		public void setText(String text) {
			this.text = text;
		}
		public int getServer_id() {
			return server_id;
		}
		public void setServer_id(int server_id) {
			this.server_id = server_id;
		}
		public String getFpath() {
			return fpath;
		}
		public void setFpath(String fpath) {
			this.fpath = fpath;
		}
		public String getIpath() {
			return ipath;
		}
		public void setIpath(String ipath) {
			this.ipath = ipath;
		}
		public int getGoup_id() {
			return goup_id;
		}
		public void setGoup_id(int goup_id) {
			this.goup_id = goup_id;
		}
		
	}
	

}
